<template>
	<view class="wihteCard">
		
		<view class="itemboxIt">
			<view class="line is1"></view>
			<view class="line is2"></view>
			<view class="line is3"></view>
			<view class="line is4"></view>
			<view class="moneyItemBox">
				<view class="friendImageBox">
					<view class="titleFriend">好友人数</view>
					<image class="friendImage" src="../../../static/friends.png" mode=""></image>
				</view>
				<view class="memberNumber">{{friendnumber}}</view>
				<!-- <view class="moreLook">查看详情</view> -->
			</view>
			<view class="moneyItemBox">
				<view class="friendImageBox">
					<view class="titleFriend">今日收入</view>
					<image class="friendImage" src="../../../static/money.png" mode=""></image>
				</view>
				<view class="memberNumber">{{dayNumber}}</view>
				<view class="moreLook"></view>
			</view>
			<view class="moneyItemBox">
				<view class="friendImageBox">
					<view class="titleFriend">本月收入</view>
					<image class="friendImage" src="../../../static/money.png" mode=""></image>
				</view>
				<view class="memberNumber">{{monthNumber}}</view>
				<view class="moreLook"></view>
			</view>
			<view class="moneyItemBox">
				<view class="friendImageBox">
					<view class="titleFriend">累计收入</view>
					<image class="friendImage" src="../../../static/money.png" mode=""></image>
				</view>
				<view class="memberNumber">{{allNumber}}</view>
				<view class="moreLook"></view>
			</view>
		</view>
	</view>
</template>

<script setup>
	import { onMounted, ref } from 'vue';
	import { GetwithDraData } from '../../../config/API/shareBack';
	onMounted(async()=>{
		const data = await GetwithDraData()
		// console.log('分享的钱===>',data)
		friendnumber.value = data.data.invite_friend_num
		dayNumber.value = data.data.day_money
		monthNumber.value = data.data.month_money
		allNumber.value = data.data.total_money
	})
	const friendnumber = ref()
	const dayNumber = ref()
	const monthNumber = ref()
	const allNumber = ref()
</script>

<style>
	.is1{
		width: 140rpx;
		height: 4rpx;
		transform: rotate(90deg);
		margin-left: 32vw;
		margin-top: 8vw;
		background: rgba(38, 38, 46, 0.1);
	}
	.is2{
		width: 140rpx;
		height: 4rpx;
		transform: rotate(90deg);
		margin-left: 32vw;
		margin-top: 32vw;
		background: rgba(38, 38, 46, 0.1);
	}
	.is4{
		margin-left: 45vw;
		margin-top: 20vw;
		width: 280rpx;
		height: 4rpx;
		opacity: 1;
		border-radius: 200rpx;
		background: rgba(38, 38, 46, 0.1);
	}
	.is3{
		margin-top: 20vw;
		width: 280rpx;
		height: 4rpx;
		opacity: 1;
		border-radius: 200rpx;
		background: rgba(38, 38, 46, 0.1);
	}
	.line{
		position: absolute;
	}
	.moreLook{
		margin-top: 10rpx;
		display: flex;
		justify-content: center;
		align-items: center;
		font-size: 20rpx;
		font-weight: 400;
		color: rgba(128, 128, 128, 1);
	}
	.memberNumber{
		display: flex;
		justify-content: center;
		align-items: center;
		font-size: 32rpx;
		font-weight: 400;
		color: rgba(0, 0, 0, 1);
	}
	.moneyItemBox{
		width: 40vw;
	}
	.titleFriend{
		font-size: 26rpx;
		font-weight: 400;
		letter-spacing: 0rpx;
		line-height: 34.48rpx;
		color: rgba(128, 128, 128, 1);
	}
	
	.wihteCard{
		display: flex;
		justify-content: center;
		align-items: center;
		margin: 30rpx auto;
		background-color: white;
		border-radius: 28.58rpx;
		width: 670rpx;
		height: 400rpx;
	}
	.friendImageBox{
		justify-content: center;
		display: flex;
		align-items: center;
	}
	.itemboxIt{
		margin: 0 auto;
		width: 90%;
		height: 70%;
		display: flex;
		flex-wrap: wrap;
		align-content: space-between;
		justify-content: space-between;
	}
	.friendImage{
		margin-left: 5rpx;
		width: 40rpx;
		height: 40rpx;
	}
</style>